<div class='container'>
     <div class="tabbable" id='tabe'> <!-- Only required for left/right tabs -->
	<?=$tab_header;?>
       <div class="tab-content" style='height:450px;' id='tabfrm'>
         <div class="tab-pane active" id="table11"><?=$this->zetro_auth->allAuth($form22,'add_karyawan');?></div>
         <div class="tab-pane" id="table21"><?=$this->zetro_auth->allAuth($form23,'add_karyawan');?></div>
         <div class="tab-pane" id="table31"><?=$this->zetro_auth->allAuth($form24,'add_karyawan');?></div>
       </div>
    </div>
</div>
<input type='hidden' id='edited' value='<?=$id_mm;?>'/>
<input type='hidden' id='aksine' value='<?=$aksi;?>'/>
<? CalenderUI(); link_js(array('zetro_number','jquery.fixedheader'),'asset/js/');?>
<script language='javascript'>
$(document).ready(function(e) {
	$('#frm21').validationEngine();
	$('#id_lokasi').html("<?=(@$_GET['ot']=='y')?$lok2:'<option value=\'0000\'>Koperasi</option>';?>")
	$('#jabatan').html("<?=$jab;?>")
	$('#tgl_lahir').datepicker();
	$('#tgl_lahir').datepicker("option","dateFormat","dd/mm/yy");
	$('#tgl_masuk').datepicker();
	$('#tgl_masuk').datepicker("option","dateFormat","dd/mm/yy");
	$('#tgl_keluar').datepicker();
	$('#tgl_keluar').datepicker("option","dateFormat","dd/mm/yy");
	$('#batal').click(function(){ $('#myModal').modal('hide');$('a#p-table2').click();})
	$('#simpan').click(function(){ ($('#frm21').validationEngine('validate'))?_simpan_data():''});
	formatAngka('salary');
	$('#tabfrm').css({'width':($('#myModal').width()-37)})
	$('#tabe').css({'width':($('#myModal').width()-17)})
	var d= new Date;
});

function _simpan_data()
{
	$.post('setkaryawanot',$('#frm21').serialize()+'&'+$('#frm31').serialize()+'&'+$('#frm41').serialize(),
	function(result)
	{
		$('#result').html(result).show().fadeOut(3000);
		$.post('setkaryawangaji',$('#frm21').serialize()+'&'+$('#frm41').serialize(),
			function(rst)
			{
				$('#result').html(rst).show().fadeOut(3000);
				_show_data('1');
				$('#batal').click();
			})
	})
}


</script>